import { ajaxService } from '@/utils/request';

const env = import.meta.env;
let baseURL = env.VITE_TAOGESHABI_URL;

// 获取字典
export function GetDictionary(params: any) {
  return ajaxService({
    url: '/factory/process/set',
    method: 'get',
    baseURL,
    params,
  });
}

// 删除字典
export function DelDictionary(params: any) {
  return ajaxService({
    url: '/factory/process/set',
    method: 'delete',
    baseURL,
    params,
  });
}

// 添加字典
export function AddOrEditDictionary(data: any) {
  return ajaxService({
    url: '/factory/process/set',
    method: 'post',
    baseURL,
    data,
  });
}
